﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
    public TimeLineCtrl timeLineCtrl;

    public Transform moveTarget;
    public Transform start;

    public Transform end;
    // Start is called before the first frame update
    void Start()
    {
        timeLineCtrl = GetComponent<TimeLineCtrl>();
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            timeLineCtrl.BindTimeLine(moveTarget, start, end);
        }
        
        if (Input.GetKeyDown(KeyCode.S))
        {
            timeLineCtrl.BindTimeLine(moveTarget, start, end);
            timeLineCtrl.PlayTimeLine();
        }
        
    }
}
